/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.LopDAO;
import POJO.LopPOJO;
import java.util.ArrayList;

/**
 *
 * @author MinhHieu
 */
public class LopBUS {
    

    public static  ArrayList<LopPOJO> selectKhoi_NamHoc(String NamHoc){
        ArrayList<LopPOJO> list = LopDAO.selectKhoi_NamHoc(NamHoc);
        return list;
    }
    public static  ArrayList<LopPOJO> selectLop_Khoi(String Khoi){
        ArrayList<LopPOJO> list = LopDAO.selectLop_Khoi(Khoi);
        return list;
    }

    public static  ArrayList<LopPOJO> selectLop_Nam(String NamHoc){
        ArrayList<LopPOJO> list = LopDAO.selectLop_Nam(NamHoc);
        return list;
    }
    public static  ArrayList<LopPOJO> laylop(){
        ArrayList<LopPOJO> list = LopDAO.layLop();
        return list;
    }
    public static  boolean  themLop(String MaLop,String Khoi,String MaNamHoc){
        boolean kq = LopDAO.ThemLop(MaLop,Khoi,MaNamHoc);
        return kq;
    }


    public static boolean  xoaLop(String MaLop, String MaNamHoc){
        boolean kq = LopDAO.XoaLop(MaLop,MaNamHoc);
        return kq;
    }
    public static boolean  suaLop(String MaLop,String Khoi,String MaNamHoc){
        boolean kq = LopDAO.suaLop(MaLop,Khoi,MaNamHoc);
        return kq;
    }

}
